export const collapsedReducer = (state , action) => {
    if (!state){
        return {
            isCollapsde:false
        }
    }
    switch (action.type) {
        case 'change_collapsed':
            let news={...state}
            news.isCollapsde=!news.isCollapsde
            return news
        default:
            return state
    }
}
